const getStorageByKey =(key)=>{
 return wx.getStorageSync(key)
}

const setStorageByKey =(key,value)=>{
 wx.getStorageSync(key,value)
}
const setExpiration = (key) =>{
  const timestap = Date.parse(new Date())
  const expiration = timestap + 1200000
  wx.setStorageSync(key,expiration)
}
  // wx.getStorageSync('date_expiration_token',expiration)


module.exports = {
  getStorageByKey,setStorageByKey,setExpiration
}